//
//  C6OrderItem.m
//  精通Objective-C
//
//  Created by 花强 on 2017/11/17.
//  Copyright © 2017年 花强. All rights reserved.
//

#import "C6OrderItem.h"

@implementation C6OrderItem
-(id)initWithName:(NSString *)itemName{
    if (self = [super init]) {
        NSLog(@"Initial OrderItem object %@",itemName);
        _name = itemName;//对于自动补全属性来说，实例变量的标准命名约定为在属性名称中加下划线前缀
    }
    return self;
}
-(void)dealloc{
    NSLog(@"Dealloc OrderItem object %@",self.name);
}

@end
